﻿@model IEnumerable<StudentManagement.Models.Student>
<!DOCTYPE html>
<html>
<head>
    <title>所有学生</title>
</head>
<body>
    <table>
        <thead>
            <tr>
                <th>ID</th>
                <th>名字</th>
                <th>班级</th>
                <th>Email</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var student in Model)
            {
            <tr>
                <td>@student.Id</td>
                <td>@student.Name</td>
                <td>@student.ClassName</td>
                <td>@student.Email</td>
            </tr>
            }
        </tbody>
    </table>
</body>
</html>